package com.wulee.notebook.bean;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.arch.persistence.room.TypeConverters;

import com.wulee.notebook.db.db.conventer.DateConverter;
import com.wulee.notebook.db.db.conventer.StringListConventer;

import java.io.Serializable;
import java.util.List;

//import cn.bmob.v3.BmobObject;

/**
 * 描述：笔记实体类
 */

@Entity
@TypeConverters({StringListConventer.class, DateConverter.class})
public class Note implements Serializable{

    private String id;//笔记ID
    private String title;//笔记标题
    private String content;//笔记内容
    private int type;//笔记类型，1纯文本，2Html，3Markdown
    @ColumnInfo(name = "bg_color")
    private String bgColor;//背景颜色，存储颜色代码
    @ColumnInfo(name = "is_encrypt")
    private int isEncrypt ;//是否加密，0未加密，1加密
    @ColumnInfo(name = "updated_at")
    private long updatedAt;
    @PrimaryKey
    @ColumnInfo(name = "created_at")
    private long createdAt;
    private List<String> imgUrls;

    public long getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(long createdAt) {
        this.createdAt = createdAt;
    }

    public long getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(long updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getBgColor() {
        return bgColor;
    }

    public void setBgColor(String bgColor) {
        this.bgColor = bgColor;
    }

    public int getIsEncrypt() {
        return isEncrypt;
    }

    public void setIsEncrypt(int isEncrypt) {
        this.isEncrypt = isEncrypt;
    }

    public List<String> getImgUrls() {
        return imgUrls;
    }

    public void setImgUrls(List<String> imgUrls) {
        this.imgUrls = imgUrls;
    }
}
